package com.gxar.uaa.server.base.model.role.vo;

import com.alibaba.fastjson2.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Set;

/**
 * @author linsy
 * @version 1.0
 * @created 2024/1/25 16:59
 */
@Data
public class RoleUserVO {

    @ApiModelProperty("用户ID")
    @JSONField(name = "user_id")
    @JsonProperty("user_id")
    @NotNull(message = "用户不能为空")
    private Long userId;
    @ApiModelProperty("角色ID")
    @JSONField(name = "role_id")
    @JsonProperty("role_id")
    @NotEmpty(message = "角色不能为空")
    private Set<Long> roleIds;

}
